package com.gdepri.cabelwellserver;

import com.gdepri.cabelwellserver.handler.MQTTHandler;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class MQTTTst {

    @Autowired
    MQTTHandler mqttHandler;

    @Test
    public void test5(){
        mqttHandler.topoAdd();
    }
    @Test
    public void test2(){
        String deviceId1 = mqttHandler.getDeviceId(1);
        String deviceId2 = mqttHandler.getDeviceId(909);

        System.out.println(deviceId1);
        System.out.println(deviceId2);

    }

}
